home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Info 1994 March
/
Internet Info CD-ROM (Walnut Creek) (March 1994).iso
/
networking
/
ip
/
ka9q
/
MNetsrc.hqx
/
Mac TCP_IP Source v.33
/
mac_atdump.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-03-08
|
455b
|
28 lines
#include <stdio.h>
#include "global.h"
#include "mbuf.h"
#include "mac_AT.h"
#include "trace.h"
extern int tcptrcflg;
extern FILE *trcwndp;
at_dump(bpp)
struct mbuf **bpp;
{
struct appletalk ap;
ntohat(&ap,bpp);
fprintf(trcwndp,"AppleTalk: %0x->%0x type 0x%x len %u\r\n",
ap.source,ap.dest,ap.type,APPLEADDRLEN + len_mbuf(*bpp));
switch(ap.type){
case AIP_TYPE:
ip_dump(bpp);
break;
case AARP_TYPE:
arp_dump(bpp);
break;
}
}